package models

import "time"

type ImportKs struct {
	Id                     uint       `gorm:"column:id;type:int(11) unsigned;primaryKey;autoIncrement" json:"id"`
	Media                  string     `gorm:"column:media;type:varchar(20);not null;default:''" json:"media"`
	Background             string     `gorm:"column:background;type:varchar(255);not null" json:"background"`
	BackgroundId           string     `gorm:"column:background_id;type:varchar(100);not null" json:"background_id"`
	AccountType            string     `gorm:"column:account_type;type:varchar(255)" json:"account_type"`
	OpenTime               string     `gorm:"column:open_time;type:date;not null" json:"open_time"`
	ExamineStatus          string     `gorm:"column:examine_status;type:varchar(50);not null" json:"examine_status"`
	AccountId              int64      `gorm:"column:account_id;type:bigint(18)" json:"account_id"`
	BusinessLicense        string     `gorm:"column:business_license;type:varchar(255);not null" json:"business_license"`
	AccountName            string     `gorm:"column:account_name;type:varchar(255);not null" json:"account_name"`
	PrimaryIndustry        string     `gorm:"column:primary_industry;type:varchar(255)" json:"primary_industry"`
	SecondIndustry         string     `gorm:"column:second_industry;type:varchar(255)" json:"second_industry"`
	PrimaryIndustry2024    string     `gorm:"column:primary_industry_2024;type:varchar(255)" json:"primary_industry_2024"`
	SecondIndustry2024     string     `gorm:"column:second_industry_2024;type:varchar(255)" json:"second_industry_2024"`
	IsOto                  string     `gorm:"column:is_oto;type:varchar(255)" json:"is_oto"`
	IndustryBelong         string     `gorm:"column:industry_belong;type:varchar(255)" json:"industry_belong"`
	KpiIndustry            string     `gorm:"column:kpi_industry;type:varchar(255)" json:"kpi_industry"`
	KpiIndustry2024        string     `gorm:"column:kpi_industry_2024;type:varchar(255)" json:"kpi_industry_2024"`
	Province               string     `gorm:"column:province;type:varchar(50)" json:"province"`
	CompanyJc              string     `gorm:"column:company_jc;type:varchar(255)" json:"company_jc"`
	CompanySku             string     `gorm:"column:company_sku;type:varchar(255)" json:"company_sku"`
	BelongKk               string     `gorm:"column:belong_kk;type:varchar(255)" json:"belong_kk"`
	Sale                   string     `gorm:"column:sale;type:char(10);not null" json:"sale"`
	FirstDepartment        string     `gorm:"column:first_department;type:varchar(255)" json:"first_department"`
	SecondDepartment       string     `gorm:"column:second_department;type:varchar(255)" json:"second_department"`
	SourceClass            string     `gorm:"column:source_class;type:varchar(50);not null" json:"source_class"`
	Channel                string     `gorm:"column:channel;type:varchar(50)" json:"channel"`
	Company                string     `gorm:"column:company;type:varchar(255)" json:"company"`
	IsNew                  string     `gorm:"column:is_new;type:varchar(100)" json:"is_new"`
	NewType                string     `gorm:"column:new_type;type:varchar(255)" json:"new_type"`
	NewOpenBelong          string     `gorm:"column:new_open_belong;type:varchar(255)" json:"new_open_belong"`
	OperationType          string     `gorm:"column:operation_type;type:varchar(10)" json:"operation_type"`
	LineOneThree           string     `gorm:"column:line_one_three;type:varchar(50)" json:"line_one_three"`
	Remark                 string     `gorm:"column:remark;type:varchar(255)" json:"remark"`
	Type                   string     `gorm:"column:type;type:varchar(50);not null" json:"type"`
	ImportRemark           string     `gorm:"column:import_remark;type:varchar(255)" json:"import_remark"`
	ImportUserId           uint       `gorm:"column:import_user_id;type:int(11) unsigned;not null" json:"import_user_id"`
	CreatedAt              time.Time  `gorm:"column:created_at;type:datetime;not null;default:CURRENT_TIMESTAMP" json:"created_at"`
	IsOld                  *int8      `gorm:"column:is_old;type:tinyint(1)" json:"is_old"`
	OpenMediumName         string     `gorm:"column:open_medium_name;type:varchar(255)" json:"open_medium_name"`
	UpdateMediumName       string     `gorm:"column:update_medium_name;type:varchar(255)" json:"update_medium_name"`
	IsWhiteUser            string     `gorm:"column:is_white_user;type:varchar(255)" json:"is_white_user"`
	IsOrientation          string     `gorm:"column:is_orientation;type:varchar(255)" json:"is_orientation"`
	NameCore               string     `gorm:"column:name_core;type:varchar(255);default:'否'" json:"name_core"`
	Medium                 string     `gorm:"column:medium;type:varchar(255)" json:"medium"`
	OldSale                string     `gorm:"column:old_sale;type:char(10)" json:"old_sale"`
	IsTransfer             int8       `gorm:"column:is_transfer;type:tinyint(4);not null;default:2" json:"is_transfer"`
	OldCompany             string     `gorm:"column:old_company;type:varchar(250)" json:"old_company"`
	OldFirstDepartment     string     `gorm:"column:old_first_department;type:varchar(250)" json:"old_first_department"`
	OldSecondDepartment    string     `gorm:"column:old_second_department;type:varchar(250)" json:"old_second_department"`
	UpdateAccountStatusAt  *time.Time `gorm:"column:update_account_status_at;type:datetime" json:"update_account_status_at"`
	UpdatedAt              *time.Time `gorm:"column:updated_at;type:datetime" json:"updated_at"`
	IsRobot                *int8      `gorm:"column:is_robot;type:tinyint(4);default:1" json:"is_robot"`
	FirstDepartment2025_5  string     `gorm:"column:first_department_2025_5;type:varchar(255)" json:"first_department_2025_5"`
	SecondDepartment2025_5 string     `gorm:"column:second_department_2025_5;type:varchar(255)" json:"second_department_2025_5"`
	IsAccountMoney         int8       `gorm:"column:is_account_money;type:tinyint(3);not null;default:1" json:"is_account_money"`
}

func (t *ImportKs) TableName() string {
	return "import_ks"
}
